package com.qiaofang.applet.service.member.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiaofang.applet.common.base.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document(collection = "member_member_subscribe")
@ApiModel("会员订阅表")
@NoArgsConstructor
public class MemberSubscribe extends BaseDomain {

    @ApiModelProperty("会员ID")
    private String memberId;

    @ApiModelProperty("会员名称")
    private String memberName;

    @ApiModelProperty("会员手机号")
    private String memberPhone;

    @ApiModelProperty(value = "楼盘唯一UUID")
    private String estateUniqueUuid;

    @ApiModelProperty("楼盘名称")
    private String estateName;

    @ApiModelProperty("订阅手机号")
    private String subscribePhone;

    @ApiModelProperty("订阅状态 订阅/取消订阅")
    private String subscribeStatus;

    @ApiModelProperty("订阅时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date subscribeTime;

    @ApiModelProperty("是否发送短信 0:否1:是")
    private Integer isMessage;

    @ApiModelProperty("删除标识,true表示删除，false 表示未删除")
    private Boolean deleted;
}
